package com.spring.service.impl;

import com.spring.dao.interfaces.StudentDao;
import com.spring.service.interfaces.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @ClassName StudentImpl
 * @Description TODO
 * @Author ZhaoKai
 * @Date 2022-02-1610:32
 * @Version 1.0
 **/
@Service("studentImpl")
public class StudentImpl implements StudentService {
    @Autowired
    @Qualifier("studentDaoImplForMySql")
    private StudentDao studentDao;

    @Override
    public int addStudent() {
        studentDao.insert();
        return 10;
    }
}
